home *** CD-ROM | disk | FTP | other *** search
/ Ultra Pack / UltraComputing Partner Applications.iso / SunLabs / tclTK / src / tk4.0 / configure < prev    next >
Encoding:
Text File  |  1995-06-29  |  61.0 KB  |  2,329 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.2 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38.  
  39. # Initialize some other variables.
  40. subdirs=
  41.  
  42. ac_prev=
  43. for ac_option
  44. do
  45.  
  46.   # If the previous option needs an argument, assign it.
  47.   if test -n "$ac_prev"; then
  48.     eval "$ac_prev=\$ac_option"
  49.     ac_prev=
  50.     continue
  51.   fi
  52.  
  53.   case "$ac_option" in
  54.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  55.   *) ac_optarg= ;;
  56.   esac
  57.  
  58.   # Accept the important Cygnus configure options, so we can diagnose typos.
  59.  
  60.   case "$ac_option" in
  61.  
  62.   -build | --build | --buil | --bui | --bu | --b)
  63.     ac_prev=build ;;
  64.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  65.     build="$ac_optarg" ;;
  66.  
  67.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  68.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  69.     ac_prev=cache_file ;;
  70.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  71.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  72.     cache_file="$ac_optarg" ;;
  73.  
  74.   -disable-* | --disable-*)
  75.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  76.     # Reject names that are not valid shell variable names.
  77.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  78.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  79.     fi
  80.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  81.     eval "enable_${ac_feature}=no" ;;
  82.  
  83.   -enable-* | --enable-*)
  84.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  85.     # Reject names that are not valid shell variable names.
  86.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  87.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  88.     fi
  89.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  90.     case "$ac_option" in
  91.       *=*) ;;
  92.       *) ac_optarg=yes ;;
  93.     esac
  94.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  95.  
  96.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  97.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  98.   | --exec | --exe | --ex)
  99.     ac_prev=exec_prefix ;;
  100.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  101.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  102.   | --exec=* | --exe=* | --ex=*)
  103.     exec_prefix="$ac_optarg" ;;
  104.  
  105.   -gas | --gas | --ga | --g)
  106.     # Obsolete; use --with-gas.
  107.     with_gas=yes ;;
  108.  
  109.   -help | --help | --hel | --he)
  110.     # Omit some internal or obsolete options to make the list less imposing.
  111.     # This message is too long to be a string in the A/UX 3.1 sh.
  112.     cat << EOF
  113. Usage: configure [options] [host]
  114. Options: [defaults in brackets after descriptions]
  115. Configuration:
  116.   --cache-file=FILE       cache test results in FILE
  117.   --help                  print this message
  118.   --no-create             do not create output files
  119.   --quiet, --silent       do not print \`checking...' messages
  120.   --version               print the version of autoconf that created configure
  121. Directory and file names:
  122.   --prefix=PREFIX         install architecture-independent files in PREFIX
  123.                           [$ac_default_prefix]
  124.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  125.                           [same as prefix]
  126.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  127.   --program-prefix=PREFIX prepend PREFIX to installed program names
  128.   --program-suffix=SUFFIX append SUFFIX to installed program names
  129.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  130. Host type:
  131.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  132.   --host=HOST             configure for HOST [guessed]
  133.   --target=TARGET         configure for TARGET [TARGET=HOST]
  134. Features and packages:
  135.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  136.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  137.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  138.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  139.   --x-includes=DIR        X include files are in DIR
  140.   --x-libraries=DIR       X library files are in DIR
  141. --enable and --with options recognized:$ac_help
  142. EOF
  143.     exit 0 ;;
  144.  
  145.   -host | --host | --hos | --ho)
  146.     ac_prev=host ;;
  147.   -host=* | --host=* | --hos=* | --ho=*)
  148.     host="$ac_optarg" ;;
  149.  
  150.   -nfp | --nfp | --nf)
  151.     # Obsolete; use --without-fp.
  152.     with_fp=no ;;
  153.  
  154.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  155.   | --no-cr | --no-c)
  156.     no_create=yes ;;
  157.  
  158.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  159.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  160.     no_recursion=yes ;;
  161.  
  162.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  163.     ac_prev=prefix ;;
  164.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  165.     prefix="$ac_optarg" ;;
  166.  
  167.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  168.   | --program-pre | --program-pr | --program-p)
  169.     ac_prev=program_prefix ;;
  170.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  171.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  172.     program_prefix="$ac_optarg" ;;
  173.  
  174.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  175.   | --program-suf | --program-su | --program-s)
  176.     ac_prev=program_suffix ;;
  177.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  178.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  179.     program_suffix="$ac_optarg" ;;
  180.  
  181.   -program-transform-name | --program-transform-name \
  182.   | --program-transform-nam | --program-transform-na \
  183.   | --program-transform-n | --program-transform- \
  184.   | --program-transform | --program-transfor \
  185.   | --program-transfo | --program-transf \
  186.   | --program-trans | --program-tran \
  187.   | --progr-tra | --program-tr | --program-t)
  188.     ac_prev=program_transform_name ;;
  189.   -program-transform-name=* | --program-transform-name=* \
  190.   | --program-transform-nam=* | --program-transform-na=* \
  191.   | --program-transform-n=* | --program-transform-=* \
  192.   | --program-transform=* | --program-transfor=* \
  193.   | --program-transfo=* | --program-transf=* \
  194.   | --program-trans=* | --program-tran=* \
  195.   | --progr-tra=* | --program-tr=* | --program-t=*)
  196.     program_transform_name="$ac_optarg" ;;
  197.  
  198.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  199.   | -silent | --silent | --silen | --sile | --sil)
  200.     silent=yes ;;
  201.  
  202.   -site | --site | --sit)
  203.     ac_prev=site ;;
  204.   -site=* | --site=* | --sit=*)
  205.     site="$ac_optarg" ;;
  206.  
  207.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  208.     ac_prev=srcdir ;;
  209.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  210.     srcdir="$ac_optarg" ;;
  211.  
  212.   -target | --target | --targe | --targ | --tar | --ta | --t)
  213.     ac_prev=target ;;
  214.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  215.     target="$ac_optarg" ;;
  216.  
  217.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  218.     verbose=yes ;;
  219.  
  220.   -version | --version | --versio | --versi | --vers)
  221.     echo "configure generated by autoconf version 2.2"
  222.     exit 0 ;;
  223.  
  224.   -with-* | --with-*)
  225.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  226.     # Reject names that are not valid shell variable names.
  227.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  228.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  229.     fi
  230.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  231.     case "$ac_option" in
  232.       *=*) ;;
  233.       *) ac_optarg=yes ;;
  234.     esac
  235.     eval "with_${ac_package}='$ac_optarg'" ;;
  236.  
  237.   -without-* | --without-*)
  238.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  239.     # Reject names that are not valid shell variable names.
  240.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  241.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  242.     fi
  243.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  244.     eval "with_${ac_package}=no" ;;
  245.  
  246.   --x)
  247.     # Obsolete; use --with-x.
  248.     with_x=yes ;;
  249.  
  250.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  251.   | --x-incl | --x-inc | --x-in | --x-i)
  252.     ac_prev=x_includes ;;
  253.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  254.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  255.     x_includes="$ac_optarg" ;;
  256.  
  257.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  258.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  259.     ac_prev=x_libraries ;;
  260.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  261.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  262.     x_libraries="$ac_optarg" ;;
  263.  
  264.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  265.     ;;
  266.  
  267.   *) 
  268.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  269.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  270.     fi
  271.     if test "x$nonopt" != xNONE; then
  272.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  273.     fi
  274.     nonopt="$ac_option"
  275.     ;;
  276.  
  277.   esac
  278. done
  279.  
  280. if test -n "$ac_prev"; then
  281.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  282. fi
  283.  
  284. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  285.  
  286. # File descriptor usage:
  287. # 0 standard input
  288. # 1 file creation
  289. # 2 errors and warnings
  290. # 3 some systems may open it to /dev/tty
  291. # 4 used on the Kubota Titan
  292. # 6 checking for... messages and results
  293. # 5 compiler messages saved in config.log
  294. if test "$silent" = yes; then
  295.   exec 6>/dev/null
  296. else
  297.   exec 6>&1
  298. fi
  299. exec 5>./config.log
  300.  
  301. echo "\
  302. This file contains any messages produced by compilers while
  303. running configure, to aid debugging if configure makes a mistake.
  304. " 1>&5
  305.  
  306. # Strip out --no-create and --no-recursion so they do not pile up.
  307. # Also quote any args containing shell metacharacters.
  308. ac_configure_args=
  309. for ac_arg
  310. do
  311.   case "$ac_arg" in
  312.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  313.   | --no-cr | --no-c) ;;
  314.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  315.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  316.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  317.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  318.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  319.   esac
  320. done
  321.  
  322. # NLS nuisances.
  323. # Only set LANG and LC_ALL to C if already set.
  324. # These must not be set unconditionally because not all systems understand
  325. # e.g. LANG=C (notably SCO).
  326. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  327. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  328.  
  329. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  330. rm -rf conftest* confdefs.h
  331. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  332. echo > confdefs.h
  333.  
  334. # A filename unique to this package, relative to the directory that
  335. # configure is in, which we can look for to find out if srcdir is correct.
  336. ac_unique_file=tk.h
  337.  
  338. # Find the source files, if location was not specified.
  339. if test -z "$srcdir"; then
  340.   ac_srcdir_defaulted=yes
  341.   # Try the directory containing this script, then its parent.
  342.   ac_prog=$0
  343.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  344.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  345.   srcdir=$ac_confdir
  346.   if test ! -r $srcdir/$ac_unique_file; then
  347.     srcdir=..
  348.   fi
  349. else
  350.   ac_srcdir_defaulted=no
  351. fi
  352. if test ! -r $srcdir/$ac_unique_file; then
  353.   if test "$ac_srcdir_defaulted" = yes; then
  354.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  355.   else
  356.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  357.   fi
  358. fi
  359. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  360.  
  361. # Prefer explicitly selected file to automatically selected ones.
  362. if test -z "$CONFIG_SITE"; then
  363.   if test "x$prefix" != xNONE; then
  364.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  365.   else
  366.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  367.   fi
  368. fi
  369. for ac_site_file in $CONFIG_SITE; do
  370.   if test -r "$ac_site_file"; then
  371.     echo "loading site script $ac_site_file"
  372.     . "$ac_site_file"
  373.   fi
  374. done
  375.  
  376. if test -r "$cache_file"; then
  377.   echo "loading cache $cache_file"
  378.   . $cache_file
  379. else
  380.   echo "creating cache $cache_file"
  381.   > $cache_file
  382. fi
  383.  
  384. ac_ext=c
  385. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  386. ac_cpp='$CPP $CPPFLAGS'
  387. ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
  388. ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5'
  389.  
  390. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  391.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  392.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  393.     ac_n= ac_c='
  394. ' ac_t='    '
  395.   else
  396.     ac_n=-n ac_c= ac_t=
  397.   fi
  398. else
  399.   ac_n= ac_c='\c' ac_t=
  400. fi
  401.  
  402.  
  403.  
  404. # @(#) configure.in 1.17 95/06/27 21:54:20
  405.  
  406. ac_aux_dir=
  407. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  408.   if test -f $ac_dir/install-sh; then
  409.     ac_aux_dir=$ac_dir
  410.     ac_install_sh="$ac_aux_dir/install-sh -c"
  411.     break
  412.   elif test -f $ac_dir/install.sh; then
  413.     ac_aux_dir=$ac_dir
  414.     ac_install_sh="$ac_aux_dir/install.sh -c"
  415.     break
  416.   fi
  417. done
  418. if test -z "$ac_aux_dir"; then
  419.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  420. fi
  421. ac_config_guess=$ac_aux_dir/config.guess
  422. ac_config_sub=$ac_aux_dir/config.sub
  423. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  424.  
  425. # Find a good install program.  We prefer a C program (faster),
  426. # so one script is as good as another.  But avoid the broken or
  427. # incompatible versions:
  428. # SysV /etc/install, /usr/sbin/install
  429. # SunOS /usr/etc/install
  430. # IRIX /sbin/install
  431. # AIX /bin/install
  432. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  433. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  434. # ./install, which can be erroneously created by make from ./install.sh.
  435. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  436. if test -z "$INSTALL"; then
  437. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  438.   echo $ac_n "(cached) $ac_c" 1>&6
  439. else
  440.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  441.   for ac_dir in $PATH; do
  442.     # Account for people who put trailing slashes in PATH elements.
  443.     case "$ac_dir/" in
  444.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  445.     *)
  446.       # OSF1 and SCO ODT 3.0 have their own names for install.
  447.       for ac_prog in ginstall installbsd scoinst install; do
  448.         if test -f $ac_dir/$ac_prog; then
  449.       if test $ac_prog = install &&
  450.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  451.         # AIX install.  It has an incompatible calling convention.
  452.         # OSF/1 installbsd also uses dspmsg, but is usable.
  453.         :
  454.       else
  455.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  456.         break 2
  457.       fi
  458.     fi
  459.       done
  460.       ;;
  461.     esac
  462.   done
  463.   IFS="$ac_save_ifs"
  464.   # As a last resort, use the slow shell script.
  465.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  466. fi
  467.   INSTALL="$ac_cv_path_install"
  468. fi
  469. echo "$ac_t""$INSTALL" 1>&6
  470.  
  471. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  472. # It thinks the first close brace ends the variable substitution.
  473. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  474.  
  475. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  476.  
  477. # Extract the first word of "ranlib", so it can be a program name with args.
  478. set dummy ranlib; ac_word=$2
  479. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  480. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  481.   echo $ac_n "(cached) $ac_c" 1>&6
  482. else
  483.   if test -n "$RANLIB"; then
  484.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  485. else
  486.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  487.   for ac_dir in $PATH; do
  488.     test -z "$ac_dir" && ac_dir=.
  489.     if test -f $ac_dir/$ac_word; then
  490.       ac_cv_prog_RANLIB="ranlib"
  491.       break
  492.     fi
  493.   done
  494.   IFS="$ac_save_ifs"
  495.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  496. fi
  497. fi
  498. RANLIB="$ac_cv_prog_RANLIB"
  499. if test -n "$RANLIB"; then
  500.   echo "$ac_t""$RANLIB" 1>&6
  501. else
  502.   echo "$ac_t""no" 1>&6
  503. fi
  504.  
  505. if test "x$prefix" = xNONE; then
  506. echo $ac_n "checking for prefix by ""... $ac_c" 1>&6
  507. # Extract the first word of "wish", so it can be a program name with args.
  508. set dummy wish; ac_word=$2
  509. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  510. if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
  511.   echo $ac_n "(cached) $ac_c" 1>&6
  512. else
  513.   case "$WISH" in
  514.   /*)
  515.   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
  516.   ;;
  517.   *)
  518.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  519.   for ac_dir in $PATH; do
  520.     test -z "$ac_dir" && ac_dir=.
  521.     if test -f $ac_dir/$ac_word; then
  522.       ac_cv_path_WISH="$ac_dir/$ac_word"
  523.       break
  524.     fi
  525.   done
  526.   IFS="$ac_save_ifs"
  527.   ;;
  528. esac
  529. fi
  530. WISH="$ac_cv_path_WISH"
  531. if test -n "$WISH"; then
  532.   echo "$ac_t""$WISH" 1>&6
  533. else
  534.   echo "$ac_t""no" 1>&6
  535. fi
  536.  
  537.   if test -n "$ac_cv_path_WISH"; then
  538.     prefix=`echo $ac_cv_path_WISH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
  539.   fi
  540. fi
  541.  
  542. CC=${CC-cc}
  543.  
  544. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  545. # On Suns, sometimes $CPP names a directory.
  546. if test -n "$CPP" && test -d "$CPP"; then
  547.   CPP=
  548. fi
  549. if test -z "$CPP"; then
  550. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  551.   echo $ac_n "(cached) $ac_c" 1>&6
  552. else
  553.     # This must be in double quotes, not single quotes, because CPP may get
  554.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  555.   CPP="${CC-cc} -E"
  556.   # On the NeXT, cc -E runs the code through the compiler's parser,
  557.   # not just through cpp.
  558.   cat > conftest.$ac_ext <<EOF
  559. #line 560 "configure"
  560. #include "confdefs.h"
  561. #include <assert.h>
  562. Syntax Error
  563. EOF
  564. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  565. ac_err=`grep -v '^ *+' conftest.out`
  566. if test -z "$ac_err"; then
  567.   :
  568. else
  569.   echo "$ac_err" >&5
  570.   rm -rf conftest*
  571.   CPP="${CC-cc} -E -traditional-cpp"
  572.   cat > conftest.$ac_ext <<EOF
  573. #line 574 "configure"
  574. #include "confdefs.h"
  575. #include <assert.h>
  576. Syntax Error
  577. EOF
  578. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  579. ac_err=`grep -v '^ *+' conftest.out`
  580. if test -z "$ac_err"; then
  581.   :
  582. else
  583.   echo "$ac_err" >&5
  584.   rm -rf conftest*
  585.   CPP=/lib/cpp
  586. fi
  587. rm -f conftest*
  588. fi
  589. rm -f conftest*
  590.   ac_cv_prog_CPP="$CPP"
  591. fi
  592. fi
  593. CPP="$ac_cv_prog_CPP"
  594. echo "$ac_t""$CPP" 1>&6
  595.  
  596. for ac_hdr in unistd.h limits.h
  597. do
  598. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  599. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  600. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  601.   echo $ac_n "(cached) $ac_c" 1>&6
  602. else
  603.   cat > conftest.$ac_ext <<EOF
  604. #line 605 "configure"
  605. #include "confdefs.h"
  606. #include <$ac_hdr>
  607. EOF
  608. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  609. ac_err=`grep -v '^ *+' conftest.out`
  610. if test -z "$ac_err"; then
  611.   rm -rf conftest*
  612.   eval "ac_cv_header_$ac_safe=yes"
  613. else
  614.   echo "$ac_err" >&5
  615.   rm -rf conftest*
  616.   eval "ac_cv_header_$ac_safe=no"
  617. fi
  618. rm -f conftest*
  619. fi
  620. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  621.   echo "$ac_t""yes" 1>&6
  622.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  623.   cat >> confdefs.h <<EOF
  624. #define $ac_tr_hdr 1
  625. EOF
  626.  
  627. else
  628.   echo "$ac_t""no" 1>&6
  629. fi
  630. done
  631.  
  632.  
  633. #--------------------------------------------------------------------
  634. #    Include sys/select.h if it exists and if it supplies things
  635. #    that appear to be useful and aren't already in sys/types.h.
  636. #    This appears to be true only on the RS/6000 under AIX.  Some
  637. #    systems like OSF/1 have a sys/select.h that's of no use, and
  638. #    other systems like SCO UNIX have a sys/select.h that's
  639. #    pernicious.  If "fd_set" isn't defined anywhere then set a
  640. #    special flag.
  641. #--------------------------------------------------------------------
  642.  
  643. echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6
  644. cat > conftest.$ac_ext <<EOF
  645. #line 646 "configure"
  646. #include "confdefs.h"
  647. #include <sys/types.h>
  648. int main() { return 0; }
  649. int t() {
  650. fd_set readMask, writeMask;
  651. ; return 0; }
  652. EOF
  653. if eval $ac_compile; then
  654.   rm -rf conftest*
  655.   tk_ok=yes
  656. else
  657.   rm -rf conftest*
  658.   tk_ok=no
  659. fi
  660. rm -f conftest*
  661.  
  662. if test $tk_ok = no; then
  663.     cat > conftest.$ac_ext <<EOF
  664. #line 665 "configure"
  665. #include "confdefs.h"
  666. #include <sys/select.h>
  667. EOF
  668. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  669.   egrep "fd_mask" >/dev/null 2>&1; then
  670.   rm -rf conftest*
  671.   tk_ok=yes
  672. fi
  673. rm -f conftest*
  674.  
  675.     if test $tk_ok = yes; then
  676.     cat >> confdefs.h <<\EOF
  677. #define HAVE_SYS_SELECT_H 1
  678. EOF
  679.  
  680.     fi
  681. fi
  682. echo "$ac_t""$tk_ok" 1>&6
  683. if test $tk_ok = no; then
  684.     cat >> confdefs.h <<\EOF
  685. #define NO_FD_SET 1
  686. EOF
  687.  
  688. fi
  689.  
  690. #--------------------------------------------------------------------
  691. #    Supply a substitute for stdlib.h if it doesn't define strtol,
  692. #    strtoul, or strtod (which it doesn't in some versions of SunOS).
  693. #--------------------------------------------------------------------
  694.  
  695. echo $ac_n "checking stdlib.h""... $ac_c" 1>&6
  696. cat > conftest.$ac_ext <<EOF
  697. #line 698 "configure"
  698. #include "confdefs.h"
  699. #include <stdlib.h>
  700. EOF
  701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  702.   egrep "strtol" >/dev/null 2>&1; then
  703.   rm -rf conftest*
  704.   tk_ok=yes
  705. else
  706.   rm -rf conftest*
  707.   tk_ok=no
  708. fi
  709. rm -f conftest*
  710.  
  711. cat > conftest.$ac_ext <<EOF
  712. #line 713 "configure"
  713. #include "confdefs.h"
  714. #include <stdlib.h>
  715. EOF
  716. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  717.   egrep "strtoul" >/dev/null 2>&1; then
  718.   :
  719. else
  720.   rm -rf conftest*
  721.   tk_ok=no
  722. fi
  723. rm -f conftest*
  724.  
  725. cat > conftest.$ac_ext <<EOF
  726. #line 727 "configure"
  727. #include "confdefs.h"
  728. #include <stdlib.h>
  729. EOF
  730. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  731.   egrep "strtod" >/dev/null 2>&1; then
  732.   :
  733. else
  734.   rm -rf conftest*
  735.   tk_ok=no
  736. fi
  737. rm -f conftest*
  738.  
  739. if test $tk_ok = no; then
  740.     cat >> confdefs.h <<\EOF
  741. #define NO_STDLIB_H 1
  742. EOF
  743.  
  744. fi
  745. echo "$ac_t""$tk_ok" 1>&6
  746.  
  747. #--------------------------------------------------------------------
  748. #    Check for various typedefs and provide substitutes if
  749. #    they don't exist.
  750. #--------------------------------------------------------------------
  751.  
  752. # If we cannot run a trivial program, we must be cross compiling.
  753. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  754. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  755.   echo $ac_n "(cached) $ac_c" 1>&6
  756. else
  757.   if test "$cross_compiling" = yes; then
  758.   ac_cv_c_cross=yes
  759. else
  760. cat > conftest.$ac_ext <<EOF
  761. #line 762 "configure"
  762. #include "confdefs.h"
  763. main(){return(0);}
  764. EOF
  765. eval $ac_link
  766. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  767.   ac_cv_c_cross=no
  768. else
  769.   ac_cv_c_cross=yes
  770. fi
  771. fi
  772. rm -fr conftest*
  773. fi
  774. cross_compiling=$ac_cv_c_cross
  775. echo "$ac_t""$ac_cv_c_cross" 1>&6
  776.  
  777. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  778. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  779.   echo $ac_n "(cached) $ac_c" 1>&6
  780. else
  781.   cat > conftest.$ac_ext <<EOF
  782. #line 783 "configure"
  783. #include "confdefs.h"
  784. #include <stdlib.h>
  785. #include <stdarg.h>
  786. #include <string.h>
  787. #include <float.h>
  788. EOF
  789. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  790. ac_err=`grep -v '^ *+' conftest.out`
  791. if test -z "$ac_err"; then
  792.   rm -rf conftest*
  793.   ac_cv_header_stdc=yes
  794. else
  795.   echo "$ac_err" >&5
  796.   rm -rf conftest*
  797.   ac_cv_header_stdc=no
  798. fi
  799. rm -f conftest*
  800.  
  801. if test $ac_cv_header_stdc = yes; then
  802.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  803. cat > conftest.$ac_ext <<EOF
  804. #line 805 "configure"
  805. #include "confdefs.h"
  806. #include <string.h>
  807. EOF
  808. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  809.   egrep "memchr" >/dev/null 2>&1; then
  810.   :
  811. else
  812.   rm -rf conftest*
  813.   ac_cv_header_stdc=no
  814. fi
  815. rm -f conftest*
  816.  
  817. fi
  818.  
  819. if test $ac_cv_header_stdc = yes; then
  820.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  821. cat > conftest.$ac_ext <<EOF
  822. #line 823 "configure"
  823. #include "confdefs.h"
  824. #include <stdlib.h>
  825. EOF
  826. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  827.   egrep "free" >/dev/null 2>&1; then
  828.   :
  829. else
  830.   rm -rf conftest*
  831.   ac_cv_header_stdc=no
  832. fi
  833. rm -f conftest*
  834.  
  835. fi
  836.  
  837. if test $ac_cv_header_stdc = yes; then
  838.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  839. if test "$cross_compiling" = yes; then
  840.   ac_cv_header_stdc=no
  841. else
  842. cat > conftest.$ac_ext <<EOF
  843. #line 844 "configure"
  844. #include "confdefs.h"
  845. #include <ctype.h>
  846. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  847. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  848. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  849. int main () { int i; for (i = 0; i < 256; i++)
  850. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  851. exit (0); }
  852.  
  853. EOF
  854. eval $ac_link
  855. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  856.   :
  857. else
  858.   ac_cv_header_stdc=no
  859. fi
  860. fi
  861. rm -fr conftest*
  862. fi
  863. fi
  864. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  865. if test $ac_cv_header_stdc = yes; then
  866.   cat >> confdefs.h <<\EOF
  867. #define STDC_HEADERS 1
  868. EOF
  869.  
  870. fi
  871.  
  872. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  873. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  874.   echo $ac_n "(cached) $ac_c" 1>&6
  875. else
  876.   cat > conftest.$ac_ext <<EOF
  877. #line 878 "configure"
  878. #include "confdefs.h"
  879. #include <sys/types.h>
  880. #if STDC_HEADERS
  881. #include <stdlib.h>
  882. #endif
  883. EOF
  884. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  885.   egrep "mode_t" >/dev/null 2>&1; then
  886.   rm -rf conftest*
  887.   ac_cv_type_mode_t=yes
  888. else
  889.   rm -rf conftest*
  890.   ac_cv_type_mode_t=no
  891. fi
  892. rm -f conftest*
  893.  
  894. fi
  895. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  896. if test $ac_cv_type_mode_t = no; then
  897.   cat >> confdefs.h <<\EOF
  898. #define mode_t int
  899. EOF
  900.  
  901. fi
  902.  
  903. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  904. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  905.   echo $ac_n "(cached) $ac_c" 1>&6
  906. else
  907.   cat > conftest.$ac_ext <<EOF
  908. #line 909 "configure"
  909. #include "confdefs.h"
  910. #include <sys/types.h>
  911. #if STDC_HEADERS
  912. #include <stdlib.h>
  913. #endif
  914. EOF
  915. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  916.   egrep "pid_t" >/dev/null 2>&1; then
  917.   rm -rf conftest*
  918.   ac_cv_type_pid_t=yes
  919. else
  920.   rm -rf conftest*
  921.   ac_cv_type_pid_t=no
  922. fi
  923. rm -f conftest*
  924.  
  925. fi
  926. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  927. if test $ac_cv_type_pid_t = no; then
  928.   cat >> confdefs.h <<\EOF
  929. #define pid_t int
  930. EOF
  931.  
  932. fi
  933.  
  934. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  935. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  936.   echo $ac_n "(cached) $ac_c" 1>&6
  937. else
  938.   cat > conftest.$ac_ext <<EOF
  939. #line 940 "configure"
  940. #include "confdefs.h"
  941. #include <sys/types.h>
  942. #if STDC_HEADERS
  943. #include <stdlib.h>
  944. #endif
  945. EOF
  946. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  947.   egrep "size_t" >/dev/null 2>&1; then
  948.   rm -rf conftest*
  949.   ac_cv_type_size_t=yes
  950. else
  951.   rm -rf conftest*
  952.   ac_cv_type_size_t=no
  953. fi
  954. rm -f conftest*
  955.  
  956. fi
  957. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  958. if test $ac_cv_type_size_t = no; then
  959.   cat >> confdefs.h <<\EOF
  960. #define size_t unsigned
  961. EOF
  962.  
  963. fi
  964.  
  965. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  966. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  967.   echo $ac_n "(cached) $ac_c" 1>&6
  968. else
  969.   cat > conftest.$ac_ext <<EOF
  970. #line 971 "configure"
  971. #include "confdefs.h"
  972. #include <sys/types.h>
  973. EOF
  974. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  975.   egrep "uid_t" >/dev/null 2>&1; then
  976.   rm -rf conftest*
  977.   ac_cv_type_uid_t=yes
  978. else
  979.   rm -rf conftest*
  980.   ac_cv_type_uid_t=no
  981. fi
  982. rm -f conftest*
  983.  
  984. fi
  985. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  986. if test $ac_cv_type_uid_t = no; then
  987.   cat >> confdefs.h <<\EOF
  988. #define uid_t int
  989. EOF
  990.  
  991.   cat >> confdefs.h <<\EOF
  992. #define gid_t int
  993. EOF
  994.  
  995. fi
  996.  
  997.  
  998. #--------------------------------------------------------------------
  999. #    Locate the X11 header files and the X11 library archive.  Try
  1000. #    the ac_path_x macro first, but if it doesn't find the X stuff
  1001. #    (e.g. because there's no xmkmf program) then check through
  1002. #    a list of possible directories.  Under some conditions the
  1003. #    autoconf macro will return an include directory that contains
  1004. #    no include files, so double-check its result just to be safe.
  1005. #--------------------------------------------------------------------
  1006.  
  1007. # If we find X, set shell vars x_includes and x_libraries to the
  1008. # paths, otherwise set no_x=yes.
  1009. # Uses ac_ vars as temps to allow command line to override cache and checks.
  1010. # --without-x overrides everything else, but does not touch the cache.
  1011. echo $ac_n "checking for X""... $ac_c" 1>&6
  1012.  
  1013. # Check whether --with-x or --without-x was given.
  1014. withval="$with_x"
  1015. if test -n "$withval"; then
  1016.   :
  1017. fi
  1018.  
  1019. if test "x$with_x" = xno; then
  1020.   no_x=yes
  1021. else
  1022.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  1023.     no_x=
  1024.   else
  1025. if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  1026.   echo $ac_n "(cached) $ac_c" 1>&6
  1027. else
  1028.   # One or both of the vars are not set, and there is no cached value.
  1029. no_x=yes
  1030. rm -fr conftestdir
  1031. if mkdir conftestdir; then
  1032.   cd conftestdir
  1033.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  1034.   cat > Imakefile <<'EOF'
  1035. acfindx:
  1036.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  1037. EOF
  1038.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  1039.     no_x=
  1040.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1041.     eval `make acfindx 2>/dev/null | grep -v make`
  1042.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  1043.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  1044.     then
  1045.       ac_im_usrlibdir=$ac_im_libdir
  1046.     fi
  1047.     # Screen out bogus values from the imake configuration.
  1048.     case "$ac_im_incroot" in
  1049.     /usr/include) ;;
  1050.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  1051.     esac
  1052.     case "$ac_im_usrlibdir" in
  1053.     /usr/lib | /lib) ;;
  1054.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  1055.     esac
  1056.   fi
  1057.   cd ..
  1058.   rm -fr conftestdir
  1059. fi
  1060.  
  1061. if test "$no_x" = yes; then
  1062. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1063. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1064. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1065. cat > conftest.$ac_ext <<EOF
  1066. #line 1067 "configure"
  1067. #include "confdefs.h"
  1068. #include <$x_direct_test_include>
  1069. EOF
  1070. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1071. ac_err=`grep -v '^ *+' conftest.out`
  1072. if test -z "$ac_err"; then
  1073.   rm -rf conftest*
  1074.   no_x= ac_x_includes=
  1075. else
  1076.   echo "$ac_err" >&5
  1077.   rm -rf conftest*
  1078.     for ac_dir in               \
  1079.     /usr/X11R6/include        \
  1080.     /usr/X11R5/include        \
  1081.     /usr/X11R4/include        \
  1082.                               \
  1083.     /usr/include/X11R6        \
  1084.     /usr/include/X11R5        \
  1085.     /usr/include/X11R4        \
  1086.                               \
  1087.     /usr/local/X11R6/include  \
  1088.     /usr/local/X11R5/include  \
  1089.     /usr/local/X11R4/include  \
  1090.                               \
  1091.     /usr/local/include/X11R6  \
  1092.     /usr/local/include/X11R5  \
  1093.     /usr/local/include/X11R4  \
  1094.                               \
  1095.     /usr/X11/include          \
  1096.     /usr/include/X11          \
  1097.     /usr/local/X11/include    \
  1098.     /usr/local/include/X11    \
  1099.                               \
  1100.     /usr/X386/include         \
  1101.     /usr/x386/include         \
  1102.     /usr/XFree86/include/X11  \
  1103.                               \
  1104.     /usr/include              \
  1105.     /usr/local/include        \
  1106.     /usr/unsupported/include  \
  1107.     /usr/athena/include       \
  1108.     /usr/local/x11r5/include  \
  1109.     /usr/lpp/Xamples/include  \
  1110.                               \
  1111.     /usr/openwin/include      \
  1112.     /usr/openwin/share/include \
  1113.     ; \
  1114.   do
  1115.     if test -r "$ac_dir/$x_direct_test_include"; then
  1116.       no_x= ac_x_includes=$ac_dir
  1117.       break
  1118.     fi
  1119.   done
  1120. fi
  1121. rm -f conftest*
  1122.  
  1123. # Check for the libraries.
  1124. # See if we find them without any special options.
  1125. # Don't add to $LIBS permanently.
  1126. ac_save_LIBS="$LIBS"
  1127. LIBS="-l$x_direct_test_library $LIBS"
  1128. cat > conftest.$ac_ext <<EOF
  1129. #line 1130 "configure"
  1130. #include "confdefs.h"
  1131.  
  1132. int main() { return 0; }
  1133. int t() {
  1134. ${x_direct_test_function}()
  1135. ; return 0; }
  1136. EOF
  1137. if eval $ac_link; then
  1138.   rm -rf conftest*
  1139.   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  1140. else
  1141.   rm -rf conftest*
  1142.   LIBS="$ac_save_LIBS"
  1143. # First see if replacing the include by lib works.
  1144. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1145.     /usr/X11R6/lib        \
  1146.     /usr/X11R5/lib        \
  1147.     /usr/X11R4/lib        \
  1148.                           \
  1149.     /usr/lib/X11R6        \
  1150.     /usr/lib/X11R5        \
  1151.     /usr/lib/X11R4        \
  1152.                           \
  1153.     /usr/local/X11R6/lib  \
  1154.     /usr/local/X11R5/lib  \
  1155.     /usr/local/X11R4/lib  \
  1156.                           \
  1157.     /usr/local/lib/X11R6  \
  1158.     /usr/local/lib/X11R5  \
  1159.     /usr/local/lib/X11R4  \
  1160.                           \
  1161.     /usr/X11/lib          \
  1162.     /usr/lib/X11          \
  1163.     /usr/local/X11/lib    \
  1164.     /usr/local/lib/X11    \
  1165.                           \
  1166.     /usr/X386/lib         \
  1167.     /usr/x386/lib         \
  1168.     /usr/XFree86/lib/X11  \
  1169.                           \
  1170.     /usr/lib              \
  1171.     /usr/local/lib        \
  1172.     /usr/unsupported/lib  \
  1173.     /usr/athena/lib       \
  1174.     /usr/local/x11r5/lib  \
  1175.     /usr/lpp/Xamples/lib  \
  1176.                           \
  1177.     /usr/openwin/lib      \
  1178.     /usr/openwin/share/lib \
  1179.     ; \
  1180. do
  1181.   for ac_extension in a so sl; do
  1182.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1183.       no_x= ac_x_libraries=$ac_dir
  1184.       break 2
  1185.     fi
  1186.   done
  1187. done
  1188. fi
  1189. rm -f conftest*
  1190.  
  1191. fi
  1192. if test "$no_x" = yes; then
  1193.   ac_cv_path_x="no_x=yes"
  1194. else
  1195.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1196. fi
  1197. fi
  1198.   fi
  1199.   eval "$ac_cv_path_x"
  1200. fi # $with_x != no
  1201.  
  1202. if test "$no_x" = yes; then
  1203.   echo "$ac_t""no" 1>&6
  1204. else
  1205.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1206.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1207.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1208.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1209. fi
  1210.  
  1211. not_really_there=""
  1212. if test "$no_x" = ""; then
  1213.     if test "$x_includes" = ""; then
  1214.     cat > conftest.$ac_ext <<EOF
  1215. #line 1216 "configure"
  1216. #include "confdefs.h"
  1217. #include <X11/XIntrinsic.h>
  1218. EOF
  1219. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1220. ac_err=`grep -v '^ *+' conftest.out`
  1221. if test -z "$ac_err"; then
  1222.   :
  1223. else
  1224.   echo "$ac_err" >&5
  1225.   rm -rf conftest*
  1226.   not_really_there="yes"
  1227. fi
  1228. rm -f conftest*
  1229.     else
  1230.     if test ! -r $x_includes/X11/Intrinsic.h; then
  1231.         not_really_there="yes"
  1232.     fi
  1233.     fi
  1234. fi
  1235. if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
  1236.     echo checking for X11 header files
  1237.     XINCLUDES="# no special path needed"
  1238.     cat > conftest.$ac_ext <<EOF
  1239. #line 1240 "configure"
  1240. #include "confdefs.h"
  1241. #include <X11/Intrinsic.h>
  1242. EOF
  1243. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1244. ac_err=`grep -v '^ *+' conftest.out`
  1245. if test -z "$ac_err"; then
  1246.   :
  1247. else
  1248.   echo "$ac_err" >&5
  1249.   rm -rf conftest*
  1250.   XINCLUDES="nope"
  1251. fi
  1252. rm -f conftest*
  1253.     if test "$XINCLUDES" = nope; then
  1254.         dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include"
  1255.         for i in $dirs ; do
  1256.         if test -r $i/X11/Intrinsic.h; then
  1257.             XINCLUDES=" -I$i"
  1258.         fi
  1259.         done
  1260.     fi
  1261. else
  1262.     if test "$x_includes" != ""; then
  1263.     XINCLUDES=-I$x_includes
  1264.     else
  1265.     XINCLUDES="# no special path needed"
  1266.     fi
  1267. fi
  1268. if test "$XINCLUDES" = nope; then
  1269.   echo "Warning:  couldn't find any X11 include files."
  1270.   XINCLUDES="# no include files found"
  1271. fi
  1272.  
  1273.  
  1274. if test "$no_x" = yes; then
  1275.     XLIBSW=nope
  1276.     if test "$XLIBSW" = nope; then
  1277.     dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
  1278.     for i in $dirs ; do
  1279.         if test -r $i/libX11.a; then
  1280.         XLIBSW="-L$i -lX11"
  1281.         fi
  1282.     done
  1283.     fi
  1284. else
  1285.     if test "$x_libraries" = ""; then
  1286.     XLIBSW=-lX11
  1287.     else
  1288.     XLIBSW="-L$x_libraries -lX11"
  1289.     fi
  1290. fi
  1291. if test "$XLIBSW" = nope ; then
  1292.     echo $ac_n "checking for -lXwindow""... $ac_c" 1>&6
  1293. if eval "test \"`echo '$''{'ac_cv_lib_Xwindow'+set}'`\" = set"; then
  1294.   echo $ac_n "(cached) $ac_c" 1>&6
  1295. else
  1296.   ac_save_LIBS="$LIBS"
  1297. LIBS="-lXwindow  $LIBS"
  1298. cat > conftest.$ac_ext <<EOF
  1299. #line 1300 "configure"
  1300. #include "confdefs.h"
  1301.  
  1302. int main() { return 0; }
  1303. int t() {
  1304. XCreateWindow()
  1305. ; return 0; }
  1306. EOF
  1307. if eval $ac_link; then
  1308.   rm -rf conftest*
  1309.   eval "ac_cv_lib_Xwindow=yes"
  1310. else
  1311.   rm -rf conftest*
  1312.   eval "ac_cv_lib_Xwindow=no"
  1313. fi
  1314. rm -f conftest*
  1315. LIBS="$ac_save_LIBS"
  1316.  
  1317. fi
  1318. if eval "test \"`echo '$ac_cv_lib_'Xwindow`\" = yes"; then
  1319.   echo "$ac_t""yes" 1>&6
  1320.   XLIBSW=-lXwindow
  1321. else
  1322.   echo "$ac_t""no" 1>&6
  1323. fi
  1324.  
  1325. fi
  1326. if test "$XLIBSW" = nope ; then
  1327.     echo "Warning:  couldn't find the X11 library archive.  Using -lX11."
  1328.     XLIBSW=-lX11
  1329. fi
  1330.  
  1331.  
  1332. #--------------------------------------------------------------------
  1333. #    Check for the existence of various libraries.  The order here
  1334. #    is important, so that then end up in the right order in the
  1335. #    command line generated by make.  The -lsocket and -lnsl libraries
  1336. #    require a couple of special tricks:
  1337. #    1. Use "connect" and "accept" to check for -lsocket, and
  1338. #       "gethostbyname" to check for -lnsl.
  1339. #    2. Use each function name only once:  can't redo a check because
  1340. #       autoconf caches the results of the last check and won't redo it.
  1341. #    3. Use -lnsl and -lsocket only if they supply procedures that
  1342. #       aren't already present in the normal libraries.  This is because
  1343. #       IRIX 5.2 has libraries, but they aren't needed and they're
  1344. #       bogus:  they goof up name resolution if used.
  1345. #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
  1346. #       To get around this problem, check for both libraries together
  1347. #       if -lsocket doesn't work by itself.
  1348. #--------------------------------------------------------------------
  1349.  
  1350. echo $ac_n "checking for -lXbsd""... $ac_c" 1>&6
  1351. if eval "test \"`echo '$''{'ac_cv_lib_Xbsd'+set}'`\" = set"; then
  1352.   echo $ac_n "(cached) $ac_c" 1>&6
  1353. else
  1354.   ac_save_LIBS="$LIBS"
  1355. LIBS="-lXbsd  $LIBS"
  1356. cat > conftest.$ac_ext <<EOF
  1357. #line 1358 "configure"
  1358. #include "confdefs.h"
  1359.  
  1360. int main() { return 0; }
  1361. int t() {
  1362. main()
  1363. ; return 0; }
  1364. EOF
  1365. if eval $ac_link; then
  1366.   rm -rf conftest*
  1367.   eval "ac_cv_lib_Xbsd=yes"
  1368. else
  1369.   rm -rf conftest*
  1370.   eval "ac_cv_lib_Xbsd=no"
  1371. fi
  1372. rm -f conftest*
  1373. LIBS="$ac_save_LIBS"
  1374.  
  1375. fi
  1376. if eval "test \"`echo '$ac_cv_lib_'Xbsd`\" = yes"; then
  1377.   echo "$ac_t""yes" 1>&6
  1378.   LIBS="$LIBS -lXbsd"
  1379. else
  1380.   echo "$ac_t""no" 1>&6
  1381. fi
  1382.  
  1383.  
  1384. tk_checkBoth=0
  1385. echo $ac_n "checking for connect""... $ac_c" 1>&6
  1386. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  1387.   echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389.   cat > conftest.$ac_ext <<EOF
  1390. #line 1391 "configure"
  1391. #include "confdefs.h"
  1392. /* System header to define __stub macros and hopefully few prototypes,
  1393.     which can conflict with char connect(); below.  */
  1394. #include <assert.h>
  1395. /* Override any gcc2 internal prototype to avoid an error.  */
  1396. char connect(); 
  1397.  
  1398. int main() { return 0; }
  1399. int t() {
  1400.  
  1401. /* The GNU C library defines this for functions which it implements
  1402.     to always fail with ENOSYS.  Some functions are actually named
  1403.     something starting with __ and the normal name is an alias.  */
  1404. #if defined (__stub_connect) || defined (__stub___connect)
  1405. choke me
  1406. #else
  1407. connect();
  1408. #endif
  1409.  
  1410. ; return 0; }
  1411. EOF
  1412. if eval $ac_link; then
  1413.   rm -rf conftest*
  1414.   eval "ac_cv_func_connect=yes"
  1415. else
  1416.   rm -rf conftest*
  1417.   eval "ac_cv_func_connect=no"
  1418. fi
  1419. rm -f conftest*
  1420.  
  1421. fi
  1422. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  1423.   echo "$ac_t""yes" 1>&6
  1424.   tk_checkSocket=0
  1425. else
  1426.   echo "$ac_t""no" 1>&6
  1427. tk_checkSocket=1
  1428. fi
  1429.  
  1430. if test "$tk_checkSocket" = 1; then
  1431.     echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  1432. if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  1433.   echo $ac_n "(cached) $ac_c" 1>&6
  1434. else
  1435.   ac_save_LIBS="$LIBS"
  1436. LIBS="-lsocket  $LIBS"
  1437. cat > conftest.$ac_ext <<EOF
  1438. #line 1439 "configure"
  1439. #include "confdefs.h"
  1440.  
  1441. int main() { return 0; }
  1442. int t() {
  1443. main()
  1444. ; return 0; }
  1445. EOF
  1446. if eval $ac_link; then
  1447.   rm -rf conftest*
  1448.   eval "ac_cv_lib_socket=yes"
  1449. else
  1450.   rm -rf conftest*
  1451.   eval "ac_cv_lib_socket=no"
  1452. fi
  1453. rm -f conftest*
  1454. LIBS="$ac_save_LIBS"
  1455.  
  1456. fi
  1457. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  1458.   echo "$ac_t""yes" 1>&6
  1459.   LIBS="$LIBS -lsocket"
  1460. else
  1461.   echo "$ac_t""no" 1>&6
  1462. tk_checkBoth=1
  1463. fi
  1464.  
  1465. fi
  1466. if test "$tk_checkBoth" = 1; then
  1467.     tk_oldLibs=$LIBS
  1468.     LIBS="$LIBS -lsocket -lnsl"
  1469.     echo $ac_n "checking for accept""... $ac_c" 1>&6
  1470. if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
  1471.   echo $ac_n "(cached) $ac_c" 1>&6
  1472. else
  1473.   cat > conftest.$ac_ext <<EOF
  1474. #line 1475 "configure"
  1475. #include "confdefs.h"
  1476. /* System header to define __stub macros and hopefully few prototypes,
  1477.     which can conflict with char accept(); below.  */
  1478. #include <assert.h>
  1479. /* Override any gcc2 internal prototype to avoid an error.  */
  1480. char accept(); 
  1481.  
  1482. int main() { return 0; }
  1483. int t() {
  1484.  
  1485. /* The GNU C library defines this for functions which it implements
  1486.     to always fail with ENOSYS.  Some functions are actually named
  1487.     something starting with __ and the normal name is an alias.  */
  1488. #if defined (__stub_accept) || defined (__stub___accept)
  1489. choke me
  1490. #else
  1491. accept();
  1492. #endif
  1493.  
  1494. ; return 0; }
  1495. EOF
  1496. if eval $ac_link; then
  1497.   rm -rf conftest*
  1498.   eval "ac_cv_func_accept=yes"
  1499. else
  1500.   rm -rf conftest*
  1501.   eval "ac_cv_func_accept=no"
  1502. fi
  1503. rm -f conftest*
  1504.  
  1505. fi
  1506. if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
  1507.   echo "$ac_t""yes" 1>&6
  1508.   tk_checkNsl=0
  1509. else
  1510.   echo "$ac_t""no" 1>&6
  1511. LIBS=$tk_oldLibs
  1512. fi
  1513.  
  1514. fi
  1515. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  1516. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  1517.   echo $ac_n "(cached) $ac_c" 1>&6
  1518. else
  1519.   cat > conftest.$ac_ext <<EOF
  1520. #line 1521 "configure"
  1521. #include "confdefs.h"
  1522. /* System header to define __stub macros and hopefully few prototypes,
  1523.     which can conflict with char gethostbyname(); below.  */
  1524. #include <assert.h>
  1525. /* Override any gcc2 internal prototype to avoid an error.  */
  1526. char gethostbyname(); 
  1527.  
  1528. int main() { return 0; }
  1529. int t() {
  1530.  
  1531. /* The GNU C library defines this for functions which it implements
  1532.     to always fail with ENOSYS.  Some functions are actually named
  1533.     something starting with __ and the normal name is an alias.  */
  1534. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  1535. choke me
  1536. #else
  1537. gethostbyname();
  1538. #endif
  1539.  
  1540. ; return 0; }
  1541. EOF
  1542. if eval $ac_link; then
  1543.   rm -rf conftest*
  1544.   eval "ac_cv_func_gethostbyname=yes"
  1545. else
  1546.   rm -rf conftest*
  1547.   eval "ac_cv_func_gethostbyname=no"
  1548. fi
  1549. rm -f conftest*
  1550.  
  1551. fi
  1552. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  1553.   echo "$ac_t""yes" 1>&6
  1554.   :
  1555. else
  1556.   echo "$ac_t""no" 1>&6
  1557. echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  1558. if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
  1559.   echo $ac_n "(cached) $ac_c" 1>&6
  1560. else
  1561.   ac_save_LIBS="$LIBS"
  1562. LIBS="-lnsl  $LIBS"
  1563. cat > conftest.$ac_ext <<EOF
  1564. #line 1565 "configure"
  1565. #include "confdefs.h"
  1566.  
  1567. int main() { return 0; }
  1568. int t() {
  1569. main()
  1570. ; return 0; }
  1571. EOF
  1572. if eval $ac_link; then
  1573.   rm -rf conftest*
  1574.   eval "ac_cv_lib_nsl=yes"
  1575. else
  1576.   rm -rf conftest*
  1577.   eval "ac_cv_lib_nsl=no"
  1578. fi
  1579. rm -f conftest*
  1580. LIBS="$ac_save_LIBS"
  1581.  
  1582. fi
  1583. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  1584.   echo "$ac_t""yes" 1>&6
  1585.   LIBS="$LIBS -lnsl"
  1586. else
  1587.   echo "$ac_t""no" 1>&6
  1588. fi
  1589.  
  1590. fi
  1591.  
  1592.  
  1593. #--------------------------------------------------------------------
  1594. # One more check related to the X libraries.  The standard releases
  1595. # of Ultrix don't support the "xauth" mechanism, so send won't work
  1596. # unless TK_NO_SECURITY is defined.  However, there are usually copies
  1597. # of the MIT X server available as well, which do support xauth.
  1598. # Check for the MIT stuff and use it if it exists.
  1599. #
  1600. # Note: can't use ac_check_lib macro (at least, not in Autoconf 2.1)
  1601. # because it can't deal with the "-" in the library name.
  1602. #--------------------------------------------------------------------
  1603.  
  1604. if test -d /usr/include/mit ; then
  1605.     echo $ac_n "checking MIT X libraries""... $ac_c" 1>&6
  1606.     tk_oldCFlags=$CFLAGS
  1607.     CFLAGS="$CFLAGS -I/usr/include/mit"
  1608.     tk_oldLibs=$LIBS
  1609.     LIBS="$LIBS -lX11-mit"
  1610.     cat > conftest.$ac_ext <<EOF
  1611. #line 1612 "configure"
  1612. #include "confdefs.h"
  1613.  
  1614.     #include <X11/Xlib.h>
  1615.     
  1616. int main() { return 0; }
  1617. int t() {
  1618.  
  1619.     XOpenDisplay(0);
  1620.     
  1621. ; return 0; }
  1622. EOF
  1623. if eval $ac_link; then
  1624.   rm -rf conftest*
  1625.   
  1626.     echo "$ac_t""yes" 1>&6
  1627.     XLIBSW="-lX11-mit"
  1628.     XINCLUDES="-I/usr/include/mit"
  1629.     
  1630. else
  1631.   rm -rf conftest*
  1632.   echo "$ac_t""no" 1>&6
  1633. fi
  1634. rm -f conftest*
  1635.  
  1636.     CFLAGS=$tk_oldCFlags
  1637.     LIBS=$tk_oldLibs
  1638. fi
  1639.  
  1640. #--------------------------------------------------------------------
  1641. #    Figure out how to find out whether a FILE structure contains
  1642. #    buffered readable data.  Some known names for the count field:
  1643. #        _cnt:        Most UNIX systems
  1644. #        __cnt:        HPUX
  1645. #        _r:        BSD
  1646. #        readCount:    Sprite
  1647. #    Or, in GNU libc there are two fields, _gptr and _egptr, which
  1648. #    have to be compared.
  1649. #--------------------------------------------------------------------
  1650.  
  1651. echo $ac_n "checking count field in FILE structures""... $ac_c" 1>&6
  1652. cat > conftest.$ac_ext <<EOF
  1653. #line 1654 "configure"
  1654. #include "confdefs.h"
  1655. #include <stdio.h>
  1656. int main() { return 0; }
  1657. int t() {
  1658. FILE *f = stdin; f->_cnt = 0;
  1659. ; return 0; }
  1660. EOF
  1661. if eval $ac_compile; then
  1662.   rm -rf conftest*
  1663.   fcnt="_cnt"
  1664. fi
  1665. rm -f conftest*
  1666.  
  1667. if test "$fcnt" = ""; then
  1668.     cat > conftest.$ac_ext <<EOF
  1669. #line 1670 "configure"
  1670. #include "confdefs.h"
  1671. #include <stdio.h>
  1672. int main() { return 0; }
  1673. int t() {
  1674. FILE *f = stdin; f->__cnt = 0;
  1675. ; return 0; }
  1676. EOF
  1677. if eval $ac_compile; then
  1678.   rm -rf conftest*
  1679.   fcnt="__cnt"
  1680. fi
  1681. rm -f conftest*
  1682.  
  1683. fi
  1684. if test "$fcnt" = ""; then
  1685.     cat > conftest.$ac_ext <<EOF
  1686. #line 1687 "configure"
  1687. #include "confdefs.h"
  1688. #include <stdio.h>
  1689. int main() { return 0; }
  1690. int t() {
  1691. FILE *f = stdin; f->_r = 0;
  1692. ; return 0; }
  1693. EOF
  1694. if eval $ac_compile; then
  1695.   rm -rf conftest*
  1696.   fcnt="_r"
  1697. fi
  1698. rm -f conftest*
  1699.  
  1700. fi
  1701. if test "$fcnt" = ""; then
  1702.     cat > conftest.$ac_ext <<EOF
  1703. #line 1704 "configure"
  1704. #include "confdefs.h"
  1705. #include <stdio.h>
  1706. int main() { return 0; }
  1707. int t() {
  1708. FILE *f = stdin; f->readCount = 0;
  1709. ; return 0; }
  1710. EOF
  1711. if eval $ac_compile; then
  1712.   rm -rf conftest*
  1713.   fcnt="readCount"
  1714. fi
  1715. rm -f conftest*
  1716.  
  1717. fi
  1718. if test "$fcnt" != ""; then
  1719.     cat >> confdefs.h <<EOF
  1720. #define TK_FILE_COUNT $fcnt
  1721. EOF
  1722.  
  1723. fi
  1724. if test "$fcnt" = ""; then
  1725.     cat > conftest.$ac_ext <<EOF
  1726. #line 1727 "configure"
  1727. #include "confdefs.h"
  1728. #include <stdio.h>
  1729. int main() { return 0; }
  1730. int t() {
  1731. FILE *f = stdin; f->_gptr = f->egptr;
  1732. ; return 0; }
  1733. EOF
  1734. if eval $ac_compile; then
  1735.   rm -rf conftest*
  1736.   tk_ok=yes
  1737. else
  1738.   rm -rf conftest*
  1739.   tk_ok=no
  1740. fi
  1741. rm -f conftest*
  1742.  
  1743.     if test $tk_ok = yes; then
  1744.     cat >> confdefs.h <<\EOF
  1745. #define TK_FILE_GPTR 1
  1746. EOF
  1747.  
  1748.     fcnt="_gptr/_egptr"
  1749.     fi
  1750. fi
  1751. if test "$fcnt" = ""; then
  1752.     cat > conftest.$ac_ext <<EOF
  1753. #line 1754 "configure"
  1754. #include "confdefs.h"
  1755. #include <stdio.h>
  1756. int main() { return 0; }
  1757. int t() {
  1758. FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
  1759. ; return 0; }
  1760. EOF
  1761. if eval $ac_compile; then
  1762.   rm -rf conftest*
  1763.   tk_ok=yes
  1764. else
  1765.   rm -rf conftest*
  1766.   tk_ok=no
  1767. fi
  1768. rm -f conftest*
  1769.  
  1770.     if test $tk_ok = yes; then
  1771.     cat >> confdefs.h <<\EOF
  1772. #define TK_FILE_READ_PTR 1
  1773. EOF
  1774.  
  1775.     fcnt="_IO_read_ptr/_IO_read_end"
  1776.     fi
  1777. fi
  1778. if test "$fcnt" = ""; then
  1779.     echo "$ac_t""not found; must supply TkReadDataPending procedure" 1>&6
  1780. else
  1781.     echo "$ac_t"""$fcnt"" 1>&6
  1782. fi
  1783.  
  1784. #--------------------------------------------------------------------
  1785. #    On a few very rare systems, all of the libm.a stuff is
  1786. #    already in libc.a.  Set compiler flags accordingly.
  1787. #    Also, Linux requires the "ieee" library for math to
  1788. #    work right (and it must appear before "-lm").
  1789. #--------------------------------------------------------------------
  1790.  
  1791. MATH_LIBS=""
  1792. echo $ac_n "checking for sin""... $ac_c" 1>&6
  1793. if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
  1794.   echo $ac_n "(cached) $ac_c" 1>&6
  1795. else
  1796.   cat > conftest.$ac_ext <<EOF
  1797. #line 1798 "configure"
  1798. #include "confdefs.h"
  1799. /* System header to define __stub macros and hopefully few prototypes,
  1800.     which can conflict with char sin(); below.  */
  1801. #include <assert.h>
  1802. /* Override any gcc2 internal prototype to avoid an error.  */
  1803. char sin(); 
  1804.  
  1805. int main() { return 0; }
  1806. int t() {
  1807.  
  1808. /* The GNU C library defines this for functions which it implements
  1809.     to always fail with ENOSYS.  Some functions are actually named
  1810.     something starting with __ and the normal name is an alias.  */
  1811. #if defined (__stub_sin) || defined (__stub___sin)
  1812. choke me
  1813. #else
  1814. sin();
  1815. #endif
  1816.  
  1817. ; return 0; }
  1818. EOF
  1819. if eval $ac_link; then
  1820.   rm -rf conftest*
  1821.   eval "ac_cv_func_sin=yes"
  1822. else
  1823.   rm -rf conftest*
  1824.   eval "ac_cv_func_sin=no"
  1825. fi
  1826. rm -f conftest*
  1827.  
  1828. fi
  1829. if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
  1830.   echo "$ac_t""yes" 1>&6
  1831.   :
  1832. else
  1833.   echo "$ac_t""no" 1>&6
  1834. MATH_LIBS="-lm"
  1835. fi
  1836.  
  1837. echo $ac_n "checking for -lieee""... $ac_c" 1>&6
  1838. if eval "test \"`echo '$''{'ac_cv_lib_ieee'+set}'`\" = set"; then
  1839.   echo $ac_n "(cached) $ac_c" 1>&6
  1840. else
  1841.   ac_save_LIBS="$LIBS"
  1842. LIBS="-lieee  $LIBS"
  1843. cat > conftest.$ac_ext <<EOF
  1844. #line 1845 "configure"
  1845. #include "confdefs.h"
  1846.  
  1847. int main() { return 0; }
  1848. int t() {
  1849. main()
  1850. ; return 0; }
  1851. EOF
  1852. if eval $ac_link; then
  1853.   rm -rf conftest*
  1854.   eval "ac_cv_lib_ieee=yes"
  1855. else
  1856.   rm -rf conftest*
  1857.   eval "ac_cv_lib_ieee=no"
  1858. fi
  1859. rm -f conftest*
  1860. LIBS="$ac_save_LIBS"
  1861.  
  1862. fi
  1863. if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then
  1864.   echo "$ac_t""yes" 1>&6
  1865.   MATH_LIBS="-lieee $MATH_LIBS"
  1866. else
  1867.   echo "$ac_t""no" 1>&6
  1868. fi
  1869.  
  1870.  
  1871.  
  1872. #--------------------------------------------------------------------
  1873. #    If this system doesn't have a memmove procedure, use memcpy
  1874. #    instead.
  1875. #--------------------------------------------------------------------
  1876.  
  1877. echo $ac_n "checking for memmove""... $ac_c" 1>&6
  1878. if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
  1879.   echo $ac_n "(cached) $ac_c" 1>&6
  1880. else
  1881.   cat > conftest.$ac_ext <<EOF
  1882. #line 1883 "configure"
  1883. #include "confdefs.h"
  1884. /* System header to define __stub macros and hopefully few prototypes,
  1885.     which can conflict with char memmove(); below.  */
  1886. #include <assert.h>
  1887. /* Override any gcc2 internal prototype to avoid an error.  */
  1888. char memmove(); 
  1889.  
  1890. int main() { return 0; }
  1891. int t() {
  1892.  
  1893. /* The GNU C library defines this for functions which it implements
  1894.     to always fail with ENOSYS.  Some functions are actually named
  1895.     something starting with __ and the normal name is an alias.  */
  1896. #if defined (__stub_memmove) || defined (__stub___memmove)
  1897. choke me
  1898. #else
  1899. memmove();
  1900. #endif
  1901.  
  1902. ; return 0; }
  1903. EOF
  1904. if eval $ac_link; then
  1905.   rm -rf conftest*
  1906.   eval "ac_cv_func_memmove=yes"
  1907. else
  1908.   rm -rf conftest*
  1909.   eval "ac_cv_func_memmove=no"
  1910. fi
  1911. rm -f conftest*
  1912.  
  1913. fi
  1914. if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
  1915.   echo "$ac_t""yes" 1>&6
  1916.   :
  1917. else
  1918.   echo "$ac_t""no" 1>&6
  1919. cat >> confdefs.h <<\EOF
  1920. #define memmove memcpy
  1921. EOF
  1922.  
  1923. fi
  1924.  
  1925.  
  1926. #--------------------------------------------------------------------
  1927. #    Figure out whether "char" is unsigned.  If so, set a
  1928. #    #define.
  1929. #--------------------------------------------------------------------
  1930.  
  1931. echo $ac_n "checking type of "char"""... $ac_c" 1>&6
  1932. if test "$cross_compiling" = yes; then
  1933.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1934. else
  1935. cat > conftest.$ac_ext <<EOF
  1936. #line 1937 "configure"
  1937. #include "confdefs.h"
  1938.  
  1939. int main()
  1940. {
  1941.     char c;
  1942.     int i;
  1943.     c = 0377;
  1944.     i = c;
  1945.     if (i == -1) {
  1946.     exit(0);
  1947.     }
  1948.     exit(1);
  1949. }
  1950. EOF
  1951. eval $ac_link
  1952. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1953.   tk_signed=1
  1954. else
  1955.   tk_signed=0
  1956. fi
  1957. fi
  1958. rm -fr conftest*
  1959. if test $tk_signed = 0; then
  1960.     cat >> confdefs.h <<\EOF
  1961. #define CHAR_UNSIGNED 1
  1962. EOF
  1963.  
  1964.     echo "$ac_t""unsigned" 1>&6
  1965. else
  1966.     echo "$ac_t""signed" 1>&6
  1967. fi
  1968.  
  1969. #--------------------------------------------------------------------
  1970. #    SGI systems don't use the BSD form of the gettimeofday function,
  1971. #    but they have a BSDgettimeofday function that can be used instead.
  1972. #
  1973. #    Also, check for the existence of a gettimeofday declaration,
  1974. #    to tkPort.h can declare it if it isn't already declared.
  1975. #--------------------------------------------------------------------
  1976.  
  1977. echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
  1978. if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
  1979.   echo $ac_n "(cached) $ac_c" 1>&6
  1980. else
  1981.   cat > conftest.$ac_ext <<EOF
  1982. #line 1983 "configure"
  1983. #include "confdefs.h"
  1984. /* System header to define __stub macros and hopefully few prototypes,
  1985.     which can conflict with char BSDgettimeofday(); below.  */
  1986. #include <assert.h>
  1987. /* Override any gcc2 internal prototype to avoid an error.  */
  1988. char BSDgettimeofday(); 
  1989.  
  1990. int main() { return 0; }
  1991. int t() {
  1992.  
  1993. /* The GNU C library defines this for functions which it implements
  1994.     to always fail with ENOSYS.  Some functions are actually named
  1995.     something starting with __ and the normal name is an alias.  */
  1996. #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
  1997. choke me
  1998. #else
  1999. BSDgettimeofday();
  2000. #endif
  2001.  
  2002. ; return 0; }
  2003. EOF
  2004. if eval $ac_link; then
  2005.   rm -rf conftest*
  2006.   eval "ac_cv_func_BSDgettimeofday=yes"
  2007. else
  2008.   rm -rf conftest*
  2009.   eval "ac_cv_func_BSDgettimeofday=no"
  2010. fi
  2011. rm -f conftest*
  2012.  
  2013. fi
  2014. if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
  2015.   echo "$ac_t""yes" 1>&6
  2016.   cat >> confdefs.h <<\EOF
  2017. #define HAVE_BSDGETTIMEOFDAY 1
  2018. EOF
  2019.  
  2020. else
  2021.   echo "$ac_t""no" 1>&6
  2022. fi
  2023.  
  2024. echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
  2025. cat > conftest.$ac_ext <<EOF
  2026. #line 2027 "configure"
  2027. #include "confdefs.h"
  2028. #include <sys/time.h>
  2029. EOF
  2030. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2031.   egrep "gettimeofday" >/dev/null 2>&1; then
  2032.   rm -rf conftest*
  2033.   echo "$ac_t""present" 1>&6
  2034. else
  2035.   rm -rf conftest*
  2036.   
  2037.     echo "$ac_t""missing" 1>&6
  2038.     cat >> confdefs.h <<\EOF
  2039. #define GETTOD_NOT_DECLARED 1
  2040. EOF
  2041.  
  2042.  
  2043. fi
  2044. rm -f conftest*
  2045.  
  2046.  
  2047. #--------------------------------------------------------------------
  2048. #    Under Solaris 2.4, strtod returns the wrong value for the
  2049. #    terminating character under some conditions.  Check for this
  2050. #    and if the problem exists use a substitute procedure
  2051. #    "fixstrtod" (provided by Tcl) that corrects the error.
  2052. #--------------------------------------------------------------------
  2053.  
  2054. echo $ac_n "checking for strtod""... $ac_c" 1>&6
  2055. if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
  2056.   echo $ac_n "(cached) $ac_c" 1>&6
  2057. else
  2058.   cat > conftest.$ac_ext <<EOF
  2059. #line 2060 "configure"
  2060. #include "confdefs.h"
  2061. /* System header to define __stub macros and hopefully few prototypes,
  2062.     which can conflict with char strtod(); below.  */
  2063. #include <assert.h>
  2064. /* Override any gcc2 internal prototype to avoid an error.  */
  2065. char strtod(); 
  2066.  
  2067. int main() { return 0; }
  2068. int t() {
  2069.  
  2070. /* The GNU C library defines this for functions which it implements
  2071.     to always fail with ENOSYS.  Some functions are actually named
  2072.     something starting with __ and the normal name is an alias.  */
  2073. #if defined (__stub_strtod) || defined (__stub___strtod)
  2074. choke me
  2075. #else
  2076. strtod();
  2077. #endif
  2078.  
  2079. ; return 0; }
  2080. EOF
  2081. if eval $ac_link; then
  2082.   rm -rf conftest*
  2083.   eval "ac_cv_func_strtod=yes"
  2084. else
  2085.   rm -rf conftest*
  2086.   eval "ac_cv_func_strtod=no"
  2087. fi
  2088. rm -f conftest*
  2089.  
  2090. fi
  2091. if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
  2092.   echo "$ac_t""yes" 1>&6
  2093.   tk_strtod=1
  2094. else
  2095.   echo "$ac_t""no" 1>&6
  2096. tk_strtod=0
  2097. fi
  2098.  
  2099. if test "$tk_strtod" = 1; then
  2100.     echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&6
  2101.     if test "$cross_compiling" = yes; then
  2102.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2103. else
  2104. cat > conftest.$ac_ext <<EOF
  2105. #line 2106 "configure"
  2106. #include "confdefs.h"
  2107.  
  2108.     extern double strtod();
  2109.     int main()
  2110.     {
  2111.         char *string = "NaN";
  2112.         char *term;
  2113.         strtod(string, &term);
  2114.         if ((term != string) && (term[-1] == 0)) {
  2115.         exit(1);
  2116.         }
  2117.         exit(0);
  2118.     }
  2119. EOF
  2120. eval $ac_link
  2121. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2122.   echo "$ac_t""ok" 1>&6
  2123. else
  2124.   
  2125.         echo "$ac_t""buggy" 1>&6
  2126.         cat >> confdefs.h <<\EOF
  2127. #define strtod fixstrtod
  2128. EOF
  2129.  
  2130.     
  2131. fi
  2132. fi
  2133. rm -fr conftest*
  2134. fi
  2135.  
  2136. trap '' 1 2 15
  2137. cat > confcache <<\EOF
  2138. # This file is a shell script that caches the results of configure
  2139. # tests run on this system so they can be shared between configure
  2140. # scripts and configure runs.  It is not useful on other systems.
  2141. # If it contains results you don't want to keep, you may remove or edit it.
  2142. #
  2143. # By default, configure uses ./config.cache as the cache file,
  2144. # creating it if it does not exist already.  You can give configure
  2145. # the --cache-file=FILE option to use a different cache file; that is
  2146. # what configure does when it calls configure scripts in
  2147. # subdirectories, so they share the cache.
  2148. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2149. # config.status only pays attention to the cache file if you give it the
  2150. # --recheck option to rerun configure.
  2151. #
  2152. EOF
  2153. # Ultrix sh set writes to stderr and can't be redirected directly,
  2154. # and sets the high bit in the cache file unless we assign to the vars.
  2155. (set) 2>&1 |
  2156.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2157.   >> confcache
  2158. if cmp -s $cache_file confcache; then
  2159.   :
  2160. else
  2161.   if test -w $cache_file; then
  2162.     echo "updating cache $cache_file"
  2163.     cat confcache > $cache_file
  2164.   else
  2165.     echo "not updating unwritable cache $cache_file"
  2166.   fi
  2167. fi
  2168. rm -f confcache
  2169.  
  2170. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2171.  
  2172. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2173. # Let make expand exec_prefix.
  2174. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2175.  
  2176. # Any assignment to VPATH causes Sun make to only execute
  2177. # the first set of double-colon rules, so remove it if not needed.
  2178. # If there is a colon in the path, we need to keep it.
  2179. if test "x$srcdir" = x.; then
  2180.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2181. fi
  2182.  
  2183. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2184.  
  2185. # Transform confdefs.h into DEFS.
  2186. # Protect against shell expansion while executing Makefile rules.
  2187. # Protect against Makefile macro expansion.
  2188. cat > conftest.defs <<\EOF
  2189. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  2190. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2191. s%\[%\\&%g
  2192. s%\]%\\&%g
  2193. s%\$%$$%g
  2194. EOF
  2195. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2196. rm -f conftest.defs
  2197.  
  2198.  
  2199. # Without the "./", some shells look in PATH for config.status.
  2200. : ${CONFIG_STATUS=./config.status}
  2201.  
  2202. echo creating $CONFIG_STATUS
  2203. rm -f $CONFIG_STATUS
  2204. cat > $CONFIG_STATUS <<EOF
  2205. #! /bin/sh
  2206. # Generated automatically by configure.
  2207. # Run this file to recreate the current configuration.
  2208. # This directory was configured as follows,
  2209. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2210. #
  2211. # $0 $ac_configure_args
  2212. #
  2213. # Compiler output produced by configure, useful for debugging
  2214. # configure, is in ./config.log if it exists.
  2215.  
  2216. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2217. for ac_option
  2218. do
  2219.   case "\$ac_option" in
  2220.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2221.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2222.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2223.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2224.     echo "$CONFIG_STATUS generated by autoconf version 2.2"
  2225.     exit 0 ;;
  2226.   -help | --help | --hel | --he | --h)
  2227.     echo "\$ac_cs_usage"; exit 0 ;;
  2228.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2229.   esac
  2230. done
  2231.  
  2232. ac_given_srcdir=$srcdir
  2233. ac_given_INSTALL="$INSTALL"
  2234.  
  2235. trap 'rm -f Makefile; exit 1' 1 2 15
  2236.  
  2237. # Protect against being on the right side of a sed subst in config.status. 
  2238. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2239.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2240. $ac_vpsub
  2241. $extrasub
  2242. s%@CFLAGS@%$CFLAGS%g
  2243. s%@CPPFLAGS@%$CPPFLAGS%g
  2244. s%@CXXFLAGS@%$CXXFLAGS%g
  2245. s%@DEFS@%$DEFS%g
  2246. s%@LDFLAGS@%$LDFLAGS%g
  2247. s%@LIBS@%$LIBS%g
  2248. s%@exec_prefix@%$exec_prefix%g
  2249. s%@prefix@%$prefix%g
  2250. s%@program_transform_name@%$program_transform_name%g
  2251. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2252. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2253. s%@RANLIB@%$RANLIB%g
  2254. s%@WISH@%$WISH%g
  2255. s%@CC@%$CC%g
  2256. s%@CPP@%$CPP%g
  2257. s%@XINCLUDES@%$XINCLUDES%g
  2258. s%@XLIBSW@%$XLIBSW%g
  2259. s%@MATH_LIBS@%$MATH_LIBS%g
  2260.  
  2261. CEOF
  2262. EOF
  2263. cat >> $CONFIG_STATUS <<EOF
  2264.  
  2265. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2266. EOF
  2267. cat >> $CONFIG_STATUS <<\EOF
  2268. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2269.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2270.   case "$ac_file" in
  2271.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2272.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2273.   *) ac_file_in="${ac_file}.in" ;;
  2274.   esac
  2275.  
  2276.   # Adjust relative srcdir, etc. for subdirectories.
  2277.  
  2278.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2279.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2280.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2281.     # The file is in a subdirectory.
  2282.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2283.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2284.     # A "../" for each directory in $ac_dir_suffix.
  2285.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2286.   else
  2287.     ac_dir_suffix= ac_dots=
  2288.   fi
  2289.  
  2290.   case "$ac_given_srcdir" in
  2291.   .)  srcdir=.
  2292.       if test -z "$ac_dots"; then top_srcdir=.
  2293.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2294.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2295.   *) # Relative path.
  2296.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2297.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2298.   esac
  2299.  
  2300.   case "$ac_given_INSTALL" in
  2301.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2302.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2303.   esac
  2304.   echo creating "$ac_file"
  2305.   rm -f "$ac_file"
  2306.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2307.   case "$ac_file" in
  2308.   *Makefile*) ac_comsub="1i\\
  2309. # $configure_input" ;;
  2310.   *) ac_comsub= ;;
  2311.   esac
  2312.   sed -e "$ac_comsub
  2313. s%@configure_input@%$configure_input%g
  2314. s%@srcdir@%$srcdir%g
  2315. s%@top_srcdir@%$top_srcdir%g
  2316. s%@INSTALL@%$INSTALL%g
  2317. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2318. fi; done
  2319. rm -f conftest.subs
  2320.  
  2321.  
  2322.  
  2323. exit 0
  2324. EOF
  2325. chmod +x $CONFIG_STATUS
  2326. rm -fr confdefs* $ac_clean_files
  2327. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2328.  
  2329.